package com.funo.business.dao;

import java.util.List;

import com.funo.business.entities.Company;
import com.funo.common.pojo.QueryCondition;

public interface CompanyDao {
	/**
	 * 保存
	 * @param company
	 */
	public void save(Company company);
	/**
	 * 更新
	 * @param company
	 */
	public void update(Company company);
	/**
	 * 删除
	 * @param companyId
	 */
	public void delete(String companyId);
	
	/**
	 * 获取
	 * @param companyId
	 * @return
	 */
	public Company get(String companyId);
	/**
	 * 根据用户ID获取
	 * @param companyId
	 */
	public Company getCompany(String userId);
	
	/**
	 * 查询公司列表
	 * @param condition　分页条件
	 * @param company　查询条件
	 * @return
	 */
	public List<Company> pageList(QueryCondition condition,Company company);
	
	/**
	 * 公司列表总数
	 * @param condition
	 * @param company
	 * @return
	 */
	public Integer count(QueryCondition condition,Company company);
}
